Skip to content

Conversation

@kakkoyun
Copy link
Contributor

@kakkoyun kakkoyun commented Sep 3, 2025

Add WithComparison and WithAsserts option helpers to allow programmatic
configuration of checkComparison and checkAsserts flags. This enables
fine-grained control over which error linting rules are applied when
using the analyzer as a library.

  • Add WithComparison(bool) option helper for comparison checking
  • Add WithAsserts(bool) option helper for assertion checking
  • Add corresponding test cases and test data
  • All tests pass

Signed-off-by: Kemal Akkoyun [email protected]

Add WithComparison and WithAsserts option helpers to allow programmatic
configuration of checkComparison and checkAsserts flags. This enables
fine-grained control over which error linting rules are applied when
using the analyzer as a library.

- Add WithComparison(bool) option helper for comparison checking
- Add WithAsserts(bool) option helper for assertion checking
- Add corresponding test cases and test data
- All tests pass

Signed-off-by: Kemal Akkoyun <[email protected]>
@kakkoyun kakkoyun marked this pull request as ready for review September 3, 2025 09:33
@polyfloyd polyfloyd merged commit 5095374 into polyfloyd:main Sep 5, 2025
3 checks passed
@polyfloyd
Copy link
Owner

Thanks!

github-merge-queue bot pushed a commit to DataDog/orchestrion that referenced this pull request Sep 11, 2025
- Add new 'orchestrion lint' command
- Use multichecker framework to run static analysis checks
- Include custom help formatting to maintain Orchestrion CLI consistency
- Add go-errorlint as the first linter
- Enable comparison and asserts checks by default for error handling
validation

Needs polyfloyd/go-errorlint#107 before merging.

Signed-off-by: Kemal Akkoyun <[email protected]>

---------

Signed-off-by: Kemal Akkoyun <[email protected]>
Co-authored-by: dd-k9-library-go[bot] <214463715+dd-k9-library-go[bot]@users.noreply.github.com>
github-merge-queue bot pushed a commit to DataDog/orchestrion that referenced this pull request Sep 11, 2025
- Add new 'orchestrion lint' command
- Use multichecker framework to run static analysis checks
- Include custom help formatting to maintain Orchestrion CLI consistency
- Add go-errorlint as the first linter
- Enable comparison and asserts checks by default for error handling
validation

Needs polyfloyd/go-errorlint#107 before merging.

Signed-off-by: Kemal Akkoyun <[email protected]>

---------

Signed-off-by: Kemal Akkoyun <[email protected]>
Co-authored-by: dd-k9-library-go[bot] <214463715+dd-k9-library-go[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants